package com.sise.stuteaintersys.bean.base;

import java.util.List;

/**
 * 分页模型
 * @author
 * @param <DataType>
 */
public class PageModel<DataType> {
    /**
     * 当前页码
     */
    public int page;
    /**
     * 页面大小
     */
    public int pageSize;

    /**
     * 数据总数
     */
    public long count;

    /**
     * 是否还有下一页
     */
    public boolean hasNext;

    /**
     * 数据列表
     */
    public List<DataType> dataList;

    public PageModel() {
    }
 
    public PageModel(int page, int pageSize) {
        this.page = page;
        this.pageSize = pageSize;
    }
 
    public PageModel(int page, int pageSize, long count) {
        this.page = page;
        this.pageSize = pageSize;
        this.count = count;
    }
 
    public PageModel(int page, int pageSize, List<DataType> dataList) {
        this.page = page;
        this.pageSize = pageSize;
        this.dataList = dataList;
    }
}